package com.edu.bean;

import java.util.Date;

/**
 * @Author:zyn
 * @Date:2025/11/18--11:45:36
 */
public class TransactionTable {
    private Integer transactionId;
    private Integer fromAccount;
    private Integer toAccount;
    private double transactionMoney;
    private Date transactionDate;

    public Integer getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(Integer transactionId) {
        this.transactionId = transactionId;
    }

    public Integer getFromAccount() {
        return fromAccount;
    }

    public void setFromAccount(Integer fromAccount) {
        this.fromAccount = fromAccount;
    }

    public Integer getToAccount() {
        return toAccount;
    }

    public void setToAccount(Integer toAccount) {
        this.toAccount = toAccount;
    }

    public double getTransactionMoney() {
        return transactionMoney;
    }

    public void setTransactionMoney(double transactionMoney) {
        this.transactionMoney = transactionMoney;
    }

    public Date getTransactionDate() {
        return transactionDate;
    }

    public void setTransactionDate(Date transactionDate) {
        this.transactionDate = transactionDate;
    }

    public TransactionTable() {
    }

    public TransactionTable(Integer fromAccount, Integer toAccount, double transactionMoney, Date transactionDate) {
        this.fromAccount = fromAccount;
        this.toAccount = toAccount;
        this.transactionMoney = transactionMoney;
        this.transactionDate = transactionDate;
    }

    @Override
    public String toString() {
        return "TransactionTable{" +
                "transactionId=" + transactionId +
                ", fromAccount=" + fromAccount +
                ", toAccount=" + toAccount +
                ", transactionMoney=" + transactionMoney +
                ", transactionDate=" + transactionDate +
                '}';
    }
}
